import { match_cur_file_url } from '../../../../../../../global/Func/uniFunc/Func/get_cur_file_url/Classes/reg_match_cur_file_url';
import { api_port } from '../../../../../../api_config';
import {
  my_schedule_api_prefix,
  my_schedule_ignore_url_key_world_arr,
} from '../../../../../DataDefine/sourceData';
import { render_main_page_uni_comps_staticNode } from './cla_render_main_page_uni_comps_staticNode';

let api_url_match_info = new match_cur_file_url(import.meta.url);

// 修订 忽视 集
api_url_match_info.ignore_url_key_world_arr =
  my_schedule_ignore_url_key_world_arr;

let cur_url = api_url_match_info.link_url();

let api_url_prefix = `${my_schedule_api_prefix}/${cur_url}`;
console.log(api_url_prefix);

const render_main_page_uni_comps_apiOperateTag =
  'render_main_page_uni_comps_apiOperate';

class render_main_page_uni_comps_apiOperate extends render_main_page_uni_comps_staticNode {
  get [Symbol.toStringTag]() {
    return render_main_page_uni_comps_apiOperateTag;
  }

  constructor(props) {
    super(props);
  }

  /**
   * 获取 所有的 组件 信息
   */
  async api_func_get_user_main_all_comps() {
    // console.log(api_url_prefix);
    let ret = await api_port.get();

    console.log(ret);
  }
}

export { render_main_page_uni_comps_apiOperate };
